home *** CD-ROM | disk | FTP | other *** search
- Make sure JavaIDL is installed (see README file) before trying out
- this sample program.
-
- Steps to build the hello program
- --------------------------------
-
- In the following, JAVA_HOME and JAVAIDL_HOME are the paths to the
- JDK (1.0.2 or later) and JavaIDL installations, respectively.
-
- o Make sure ${JAVA_HOME}/bin and ${JAVAIDL_HOME}/bin are in your path.
-
- o Run the IDL compiler to generate stubs and skeletons
-
- idltojava -fclient -fserver hello.idl
-
- o Compile all the Java Files
-
- javac -classpath ${JAVA_HOME}/lib/classes.zip:${JAVAIDL_HOME}/lib/classes.zip:. *.java HelloApp/*.java
-
-
- Steps to run the hello program
- ------------------------------
- o Start the name server
-
- cd ${JAVAIDL_HOME}/bin
- nameserv -ORBInitialPort 1050
-
- o Run the Hello Server
-
- java -classpath ${JAVA_HOME}/lib/classes.zip:${JAVAIDL_HOME}/lib/classes.zip:. helloServer -ORBInitialPort 1050
-
- o Run the Hello Client
-
- java -classpath ${JAVA_HOME}/lib/classes.zip:${JAVAIDL_HOME}/lib/classes.zip:. helloClient -ORBInitialPort 1050
-
-
-